package com.robusta.app.domain;

import static org.apache.commons.lang3.StringUtils.capitalize;

public enum YesNo {
    YES, NO;

    public static YesNo fromBoolean(boolean yesNoValue) {
        return yesNoValue ? YES : NO;
    }

    @Override
    public String toString() {
        return capitalize(name().toLowerCase());
    }
}
